Statistical functions

The Statistical functions evaluate the maximum and minimum value of numeric or string argument.

max

This function accepts an arbitrary number of arguments as inputs and returns the maximum of any numeric or string argument. The values of arguments get converted into ASCII (American Standard Code for Information Interchange), so a string is greater than a number.

Syntax:

| process eval("identifier=max(X, ...)")

Example:

| process eval("Maximum_datasize=max(received_datasize,sent_datasize)")
| fields received_datasize, sent_datasize, Maximum_datasize

The above example returns the highest value of the received_datasize and sent_datsize fields in the Maximum_datasize identifier.

The fields command displays the value of received_datasize, sent_datasize, and Maximun_datasize in a tabular form.

_images/max.png

Max function

min

This function accepts an arbitrary number of arguments as inputs and returns the minimum of any numeric or string argument. The values of arguments get converted into ASCII (American Standard Code for Information Interchange), so a string is greater than a number.

Syntax:

| process eval("identifier=min(X, ...)")

Example:

| process eval("Minimum_datasize=min(received_datasize,sent_datasize)")
| fields received_datasize, sent_datasize, Minimum_datasize

The above example returns the lowest value of the received_datasize and sent_datsize fields in the Minimum_datasize identifier.

The fields command displays the value of received_datasize, sent_datasize, and Minimum_datasize in a tabular form.

_images/min.png

Min function


Helpful?

We are glad this guide helped.


Please don't include any personal information in your comment

Contact Support